package com.suning.sawp.dto.yxwt;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * 〈一句话功能简述〉物流状态<br>
 * 〈功能详细描述〉
 *
 * @author 17033093
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class LogisticsStateConstant {
    
    /**
     * 接口返回码
     */
    public static final Map<String, String> INTERFACE_CODE_MAP = new HashMap<String, String>();

    /**
     * 物流状态
     */
    public static final Map<String, String> LOGISTICS_STATE_MAP = new HashMap<String, String>();

    /**
     * 接口查询失败或者不在接口返回码范围内，返回DJ9999，客户端展示“查看物流”按钮
     */
    public static final String LOGI_STATE_DJWL = "DJ9999";
    /**
     * 待发货
     */
    public static final String LOGI_STATE_E001 = "DJ0001";
    /**
     * 已发货
     */
    public static final String LOGI_STATE_E002 = "DJ0002";
    /**
     * 已完成
     */
    public static final String LOGI_STATE_E003 = "DJ0003";
    /**
     * 已改期
     */
    public static final String LOGI_STATE_E004 = "DJ0004";
    /**
     * 已拒收
     */
    public static final String LOGI_STATE_E005 = "DJ0005";
    
    public static final String INTER_CODE_1010 = "1010";
    public static final String INTER_CODE_1020 = "1020";
    public static final String INTER_CODE_1030 = "1030";
    public static final String INTER_CODE_1035 = "1035";
    public static final String INTER_CODE_1050 = "1050";
    public static final String INTER_CODE_1060 = "1060";
    public static final String INTER_CODE_1070 = "1070";
    public static final String INTER_CODE_1080 = "1080";
    public static final String INTER_CODE_1090 = "1090";
    public static final String INTER_CODE_1095 = "1095";
    public static final String INTER_CODE_1101 = "1101";
    public static final String INTER_CODE_1102 = "1102";
    public static final String INTER_CODE_1103 = "1103";

    static {
        // 作业单产生
        INTERFACE_CODE_MAP.put(INTER_CODE_1010, LOGI_STATE_E002);
        // 派工
        INTERFACE_CODE_MAP.put(INTER_CODE_1020, LOGI_STATE_E002);
        // 拣货
        INTERFACE_CODE_MAP.put(INTER_CODE_1030, LOGI_STATE_E002);
        // 客户包装
        INTERFACE_CODE_MAP.put(INTER_CODE_1035, LOGI_STATE_E002);
        // 发票打印
        INTERFACE_CODE_MAP.put(INTER_CODE_1050, LOGI_STATE_E002);
        // 发货
        INTERFACE_CODE_MAP.put(INTER_CODE_1060, LOGI_STATE_E002);
        // 入站
        INTERFACE_CODE_MAP.put(INTER_CODE_1070, LOGI_STATE_E002);
        // 中转点派工
        INTERFACE_CODE_MAP.put(INTER_CODE_1080, LOGI_STATE_E002);
        // 出站
        INTERFACE_CODE_MAP.put(INTER_CODE_1090, LOGI_STATE_E002);
        // 排程
        INTERFACE_CODE_MAP.put(INTER_CODE_1095, LOGI_STATE_E002);
        // 销单完成
        INTERFACE_CODE_MAP.put(INTER_CODE_1101, LOGI_STATE_E003);
        // 销单改期
        INTERFACE_CODE_MAP.put(INTER_CODE_1102, LOGI_STATE_E004);
        // 销单拒收
        INTERFACE_CODE_MAP.put(INTER_CODE_1103, LOGI_STATE_E005);
        
        LOGISTICS_STATE_MAP.put(LOGI_STATE_DJWL, "查看物流");
        LOGISTICS_STATE_MAP.put(LOGI_STATE_E001, "待发货");
        LOGISTICS_STATE_MAP.put(LOGI_STATE_E002, "已发货");
        LOGISTICS_STATE_MAP.put(LOGI_STATE_E003, "已完成");
        LOGISTICS_STATE_MAP.put(LOGI_STATE_E004, "已改期");
        LOGISTICS_STATE_MAP.put(LOGI_STATE_E005, "已拒收");
    }
}
